package com.cmc.cloud.cmclink.doc.vo.special.containermaxpayloadvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 箱型最大载重维护 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class ContainerMaxPayloadBaseVO {

    @Schema(description = "箱尺寸", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "箱尺寸不能为空")
    @Length(max = 2, message = "{containermaxpayload.cntrsize.max.length}")
    private String cntrSize;

    @Schema(description = "箱类型", example = "2")
    @Length(max = 2, message = "{containermaxpayload.cntrtype.max.length}")
    private String cntrType;

    @Schema(description = "最大荷载(kg)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer maxPayload;

    @Schema(description = "总长(CM)")
    private Integer length;

    @Schema(description = "总宽(CM)")
    private Integer width;

    @Schema(description = "总高(CM)")
    private Integer height;

    @Schema(description = "前超(CM)")
    private Integer overForward;

    @Schema(description = "后超(CM)")
    private Integer overAfter;

    @Schema(description = "左超(CM)")
    private Integer overLeft;

    @Schema(description = "右超(CM)")
    private Integer overRight;

    @Schema(description = "上超(CM)")
    private Integer overHeight;

}
